home *** CD-ROM | disk | FTP | other *** search
/ OpenGL Superbible (2nd Edition) / OpenGL SuperBible e2.iso / tools / FLTK-1.0.6 / fluid / alignment_panel.cxx < prev    next >
Encoding:
C/C++ Source or Header  |  1999-08-05  |  2.7 KB  |  82 lines

  1. // generated by Fast Light User Interface Designer (fluid) version 1.00
  2.  
  3. #include "alignment_panel.h"
  4.  
  5. Fl_Window *alignment_window=(Fl_Window *)0;
  6.  
  7. Fl_Input *horizontal_input=(Fl_Input *)0;
  8.  
  9. Fl_Input *vertical_input=(Fl_Input *)0;
  10.  
  11. Fl_Input *snap_input=(Fl_Input *)0;
  12.  
  13. static void cb_Close(Fl_Button*, void*) {
  14.   alignment_window->hide();
  15. }
  16.  
  17. Fl_Input *header_file_input=(Fl_Input *)0;
  18.  
  19. Fl_Input *code_file_input=(Fl_Input *)0;
  20.  
  21. Fl_Light_Button *include_H_from_C_button=(Fl_Light_Button *)0;
  22.  
  23. Fl_Window* make_alignment_window() {
  24.   Fl_Window* w;
  25.   { Fl_Window* o = alignment_window = new Fl_Window(210, 310, "fluid Preferences");
  26.     w = o;
  27.     { Fl_Box* o = new Fl_Box(10, 20, 190, 100, "Alignment:");
  28.       o->box(FL_ENGRAVED_FRAME);
  29.       o->labelsize(12);
  30.       o->align(FL_ALIGN_TOP_LEFT);
  31.     }
  32.     { Fl_Input* o = horizontal_input = new Fl_Input(90, 30, 100, 20, "Horizontal:");
  33.       o->type(2);
  34.       o->box(FL_THIN_DOWN_BOX);
  35.       o->callback((Fl_Callback*)alignment_cb, (void*)(1));
  36.       o->when(FL_WHEN_RELEASE|FL_WHEN_ENTER_KEY);
  37.     }
  38.     { Fl_Input* o = vertical_input = new Fl_Input(90, 60, 100, 20, "Vertical:");
  39.       o->type(2);
  40.       o->box(FL_THIN_DOWN_BOX);
  41.       o->callback((Fl_Callback*)alignment_cb, (void*)(2));
  42.       o->when(FL_WHEN_RELEASE|FL_WHEN_ENTER_KEY);
  43.     }
  44.     { Fl_Input* o = snap_input = new Fl_Input(90, 90, 100, 20, "Snap:");
  45.       o->type(2);
  46.       o->box(FL_THIN_DOWN_BOX);
  47.       o->callback((Fl_Callback*)alignment_cb, (void*)(3));
  48.       o->when(FL_WHEN_RELEASE|FL_WHEN_ENTER_KEY);
  49.     }
  50.     { Fl_Button* o = new Fl_Button(140, 280, 60, 20, "Close");
  51.       o->callback((Fl_Callback*)cb_Close);
  52.     }
  53.     { Fl_Box* o = new Fl_Box(10, 140, 190, 130, "Output File Names:");
  54.       o->box(FL_ENGRAVED_FRAME);
  55.       o->labelsize(12);
  56.       o->align(FL_ALIGN_TOP_LEFT);
  57.     }
  58.     { Fl_Box* o = new Fl_Box(20, 150, 170, 30, "Use \"name.ext\" to set name or just \".ext\" to set only extension.");
  59.       o->labelsize(10);
  60.       o->align(132|FL_ALIGN_INSIDE);
  61.     }
  62.     { Fl_Input* o = header_file_input = new Fl_Input(100, 180, 90, 20, "Header File:");
  63.       o->box(FL_THIN_DOWN_BOX);
  64.       o->callback((Fl_Callback*)header_input_cb, (void*)(1));
  65.       o->when(FL_WHEN_CHANGED);
  66.     }
  67.     { Fl_Input* o = code_file_input = new Fl_Input(100, 210, 90, 20, "Code File:");
  68.       o->box(FL_THIN_DOWN_BOX);
  69.       o->callback((Fl_Callback*)code_input_cb, (void*)(1));
  70.       o->when(FL_WHEN_CHANGED);
  71.     }
  72.     { Fl_Light_Button* o = include_H_from_C_button = new Fl_Light_Button(20, 240, 170, 20, "Include Header from Code");
  73.       o->value(1);
  74.       o->labelsize(12);
  75.       o->callback((Fl_Callback*)include_H_from_C_button_cb);
  76.     }
  77.     o->set_modal();
  78.     o->end();
  79.   }
  80.   return w;
  81. }
  82.